export const model={
    avatarUrl: undefined,
    email: undefined,
    id: undefined,
    phone: undefined,
    username: undefined,
    nickname: undefined,
    roleDtoList: [],
    oldPassword:undefined,
    newPassword:undefined,
    confirmPassword:undefined,
    encryptKey:undefined
}
export const rules={  
    username:[
        { required: true, message: '用户名不能为空', trigger: 'blur',whitespace: true },
    ],
    nickname: [
        { required: true, message: '昵称不能为空', trigger: 'blur', whitespace: true },
    ],
    avatarUrl:[
        { required: true, message: '头像不能为空', trigger: 'blur',whitespace: true },
    ],
    phone:[
        // {pattern:/1[3-9]\\d{9}/,message: '手机号输入有误'},
        { required: true, message: '手机号不能为空', trigger: 'blur',whitespace: true },
    ],
    email:[
        {type:"email",message: '邮箱输入有误',trigger: 'change'}
    ],
    oldPassword:[
        { required: true, message: '旧密码不能为空', trigger: 'blur',whitespace: true },
    ],
    newPassword:[
        { required: true, message: '新密码不能为空', trigger: 'blur',whitespace: true },
    ],
    confirmPassword:[
        { required: true, message: '确认密码不能为空', trigger: 'blur',whitespace: true },
    ],
}
